<template>
  <nm-form-dialog ref="form" v-bind="form" v-on="on" :visible.sync="visible_">
    <el-row>
      <el-col :span="20" :offset="1">
        <el-form-item label="车次编号：" prop="bus_id">
          <el-input v-model="form.model.bus_id" clearable />
        </el-form-item>
        <el-form-item label="所属车站：" prop="subordinateid">
          <el-input v-model="form.model.subordinateid" clearable />
        </el-form-item>
        <el-form-item label="站点：" prop="station_id">
          <el-input v-model="form.model.station_id" clearable />
        </el-form-item>
        <el-form-item label="车票类型：" prop="ticket_type">
          <el-input v-model="form.model.ticket_type" clearable />
        </el-form-item>
        <el-form-item label="车型：" prop="vehicle_type">
          <el-input v-model="form.model.vehicle_type" clearable />
        </el-form-item>
        <el-form-item label="座位类型：" prop="seat_type">
          <el-input v-model="form.model.seat_type" clearable />
        </el-form-item>
        <el-form-item label="票价方案：" prop="price_scheme_id">
          <el-input v-model="form.model.price_scheme_id" clearable />
        </el-form-item>
        <el-form-item label="序号：" prop="station_serial">
          <el-input v-model="form.model.station_serial" clearable />
        </el-form-item>
        <el-form-item label="里程：" prop="mileage">
          <el-input v-model="form.model.mileage" clearable />
        </el-form-item>
        <el-form-item label="运费：" prop="base_carriage">
          <el-input v-model="form.model.base_carriage" clearable />
        </el-form-item>
        <el-form-item label="站务费：" prop="station_servicefee">
          <el-input v-model="form.model.station_servicefee" clearable />
        </el-form-item>
        <el-form-item label="燃油附加费：" prop="fuel_add_fee">
          <el-input v-model="form.model.fuel_add_fee" clearable />
        </el-form-item>
        <el-form-item label="微机费：" prop="compute_fee">
          <el-input v-model="form.model.compute_fee" clearable />
        </el-form-item>
        <el-form-item label="空调费：" prop="coolair_fee">
          <el-input v-model="form.model.coolair_fee" clearable />
        </el-form-item>
        <el-form-item label="卫生费：" prop="health_fee">
          <el-input v-model="form.model.health_fee" clearable />
        </el-form-item>
        <el-form-item label="其它费：" prop="other_fee">
          <el-input v-model="form.model.other_fee" clearable />
        </el-form-item>
        <el-form-item label="上限票价：" prop="toplimit_price">
          <el-input v-model="form.model.toplimit_price" clearable />
        </el-form-item>
        <el-form-item label="下限票价：" prop="lowerlimit_price">
          <el-input v-model="form.model.lowerlimit_price" clearable />
        </el-form-item>
      </el-col>
    </el-row>
  </nm-form-dialog>
</template>
<script>
import { mixins } from 'netmodular-ui'

const { add, edit, update } = $api.dispatch.bus_price

export default {
  mixins: [mixins.formSave],
  data() {
    return {
      title: '车次票价',
      actions: { add, edit, update },
      form: {
        model: {
          /** 车次编号 */
          bus_id: '',
          /** 所属车站 */
          subordinateid: '',
          /** 站点 */
          station_id: '',
          /** 车票类型 */
          ticket_type: '',
          /** 车型 */
          vehicle_type: '',
          /** 座位类型 */
          seat_type: '',
          /** 票价方案 */
          price_scheme_id: '',
          /** 序号 */
          station_serial: '',
          /** 里程 */
          mileage: '',
          /** 运费 */
          base_carriage: '',
          /** 站务费 */
          station_servicefee: '',
          /** 燃油附加费 */
          fuel_add_fee: '',
          /** 微机费 */
          compute_fee: '',
          /** 空调费 */
          coolair_fee: '',
          /** 卫生费 */
          health_fee: '',
          /** 其它费 */
          other_fee: '',
          /** 上限票价 */
          toplimit_price: '',
          /** 下限票价 */
          lowerlimit_price: ''
        },
        rules: {}
      }
    }
  }
}
</script>
